package edu.ustb.efws.pipeline.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.Date;
import java.util.Objects;

/**
 * 月最大电流
 *
 * @author  TS Group
 */
public class IptMaxI {
    @ApiModelProperty("编号")
    private Long id;
    @ApiModelProperty("iptId")
    private Integer iptId;
    @ApiModelProperty("月份")
    private Integer month;
    @ApiModelProperty("最大电流")
    private Float maxI;
    @ApiModelProperty("修改时间")
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getIptId() {
        return iptId;
    }

    public void setIptId(Integer iptId) {
        this.iptId = iptId;
    }

    public Integer getMonth() {
        return month;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }

    public Float getMaxI() {
        return maxI;
    }

    public void setMaxI(Float maxI) {
        this.maxI = maxI;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        IptMaxI iptMaxI = (IptMaxI) o;
        return Objects.equals(id, iptMaxI.id) &&
                Objects.equals(iptId, iptMaxI.iptId) &&
                Objects.equals(month, iptMaxI.month) &&
                Objects.equals(maxI, iptMaxI.maxI) &&
                Objects.equals(updateTime, iptMaxI.updateTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, iptId, month, maxI, updateTime);
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", id)
                .append("iptId", iptId)
                .append("month", month)
                .append("maxI", maxI)
                .append("updateTime", updateTime)
                .toString();
    }
}
